import request from "@/utils/request";

export const getMessageAll = async ()=>{
  return await request.get("/message/all")
}

export const addMessage = async (username,content)=>{
  return await request.post("/message/",{username,content},{
    headers:{
      "Content-Type":"application/x-www-form-urlencoded"
    }
  })
}